import $axios from './index.js'

// 岗位分类列表
function jobCateList(data) {
  const url = '/jobCate/index'
  return $axios.get(url, data)
}
// 岗位分类添加
function jobCateSave(data) {
  const url = '/jobCate/save'
  return $axios.post(url, data)
}
// 岗位分类编辑
function jobCateUpdate(data) {
  const url = '/jobCate/update'
  return $axios.post(url, data)
}
// 岗位分类删除
function jobCateDelete(data) {
  const url = '/jobCate/delete'
  return $axios.post(url, data)
}

// 城市列表
function jobCityList(data) {
  const url = '/jobCity/index'
  return $axios.get(url, data)
}
// 城市添加
function jobCitySave(data) {
  const url = '/jobCity/save'
  return $axios.post(url, data)
}
// 城市编辑
function jobCityUpdate(data) {
  const url = '/jobCity/update'
  return $axios.post(url, data)
}
// 城市删除
function jobCityDelete(data) {
  const url = '/jobCity/delete'
  return $axios.post(url, data)
}

// 岗位列表
function jobList(data) {
  const url = '/job/index'
  return $axios.get(url, data)
}
// 岗位添加
function jobSave(data) {
  const url = '/job/save'
  return $axios.post(url, data)
}
// 岗位编辑
function jobUpdate(data) {
  const url = '/job/update'
  return $axios.post(url, data)
}
// 岗位删除
function jobDelete(data) {
  const url = '/job/delete'
  return $axios.post(url, data)
}
// 岗位详情
function jobInfo(data) {
  const url = '/job/read'
  return $axios.get(url, data)
}
export default {
  jobCateList,
  jobCateSave,
  jobCateUpdate,
  jobCateDelete,
  jobCityList,
  jobCitySave,
  jobCityUpdate,
  jobCityDelete,
  jobList,
  jobSave,
  jobUpdate,
  jobDelete,
  jobInfo
}
